var express = require('express')

var app = express()

app.use(express.static('dist'))

app.get('/', function (req,res) {

  res.render('index', function (err, html) {
    if (err ) return err
    res.send(html)
  })

})
.listen(8080)

console.log('正在监听 8080端口...')